﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using _52fzc.IBusinessObject;
using _52fzc.Model;
using _52fzc.Model.PattenModel;
using _52fzc.IRepository;

namespace _52fzc.BusinessLogic
{
    public class NewsBO : BusinessObject,INewsBO
    {
        private readonly INewsDAL _dal = null;
        public NewsBO(INewsDAL dal)
        {
            _dal = dal;
        }

        public bool AddNews(Context c)
        {
            NewsEntity news = GetNewsInContext(c);
            return _dal.AddNews(news);
        }

        public bool DeleteNews(Context c)
        {
            throw new NotImplementedException();
        }

        public IList<NewsEntity> GetNews()
        {
            throw new NotImplementedException();
        }

        public IList<NewsEntity> GetNews(Context c)
        {
            throw new NotImplementedException();
        }

        public IList<NewsEntity> GetTopNews()
        {
            throw new NotImplementedException();
        }

        public NewsEntity GetSingleNews(Context c)
        {
            throw new NotImplementedException();
        }

        private NewsEntity GetNewsInContext(Context c)
        {
            return new NewsEntity();
        }
    }
}
